package com.springcloud.configclient.consumer.fallback;

import com.springcloud.configclient.consumer.remote.HelloRemote;
import org.springframework.stereotype.Component;

/**
 * 创建fallback类，继承与HelloRemote实现回调的方法
 */

@Component
public class HelloRemoteFallBack implements HelloRemote {
    @Override
    public String hello(String name) {
        return "hello " + name + ", i am fallback massage";
    }

    @Override
    public String test(String msg) {
        return "test " + msg + ", i am fallback massage";    }
}
